#include <bits/stdc++.h>
using namespace std;

int x, y;
char ch;
int ans;
int main() {
    cin >> x >> y >> ch;

    switch (ch) {
        case '+':
            cout << x + y;
            break;
        case '-':
            cout << x - y;
            break;
        case '*':
            cout << x * y;
            break;
        case '/':
            if (y == 0) {
                cout << "Divided by zero!";
            } else {
                cout << x / y;
            }
            break;
        default:
            cout << "Invalid operator!";
            break;
    }
    return 0;
}